import Qs from 'qs'
import request from './request'



export default{
getUserInfoList : async  (data)=> await request.post('/user/info/list',Qs.stringify(data)),


// 获取用户权限
selfInfoWithAuth : async ()=>await request.post('/user/info/selfInfoWithAuth',Qs.stringify()),


userLogin : async data => await  request({url: '/login', method: 'post', data: Qs.stringify(data)}),

userLogout: async data => await request({url: '/logout', method: 'post', data: Qs.stringify(data)}),

getSelfUserInfo: async data => await request({url: '/user/info/selfInfo', method: 'post', data: Qs.stringify(data)}),

updateSelfPwd: async data => await request({url: '/user/info/updateSelfPwd', method: 'post', data: Qs.stringify(data)}),


searchUserInfoList:async data => await request({url: '/user/info/search', method: 'post', data: Qs.stringify(data)}),

updateUserInfo: async data => await request({url: '/user/info/update', method: 'post', data: Qs.stringify(data)}),

deleteUserInfo: async data => await request({url: '/user/info/delete', method: 'post', data: Qs.stringify(data)}),

userAuthList: async data => await request({url: '/user/info/auth/list', method: 'post', data: Qs.stringify(data)}),

updateUserAuth: async data => await request({url: '/user/info/auth/update', method: 'post', data: Qs.stringify(data)}),

resetPassword: async data => await request({url: '/user/info/resetPassword', method: 'post', data: Qs.stringify(data)}),

userGroupList:async data => await request({url: '/user/group/list', method: 'post', data: Qs.stringify(data)}),

updateUserGroup: async data => await request({url: '/user/group/update', method: 'post', data: Qs.stringify(data)}),

deleteUserGroup: async data => await request({url: '/user/group/delete', method: 'post', data: Qs.stringify(data)}),

updateUserGroupRelation: async data => await request({url: '/user/group/relation/update', method: 'post', data: Qs.stringify(data)}),

removeUserGroupRelation: async data => await request({url: '/user/group/relation/remove', method: 'post', data: Qs.stringify(data)}),

userGroupRelationList:  async data => await request({url: '/user/group/relation/list', method: 'post', data: Qs.stringify(data)}),

}